public class JavaSwitch {
    public static void main (String[] args) {
        int sum = 0; // 保存数据
        int n = 1; // 循环条件
        while (n <= 100) {
            sum = sum  + n; 
            n++ ;
        }
        System.out.println(sum);
    }
}